<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li id="activetab"><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				
<#setting number_format = "#"/>

<form action="${contextPath}/jforum${extension}" method="post" name="form" id="form" accept-charset="${encoding}">
<input type="hidden" name="action" value="delete" />
<input type="hidden" name="module" value="${moduleName}" />

<table cellspacing="1">
            <caption>${I18n.getMessage("Forums.List.Title")}</caption>
			<colgroup><col class="row1"><col class="row1"><col class="row1"><col class="row1"><col class="row1">
			</colgroup><thead>
	<tr>
		<th  colspan="2">${I18n.getMessage("Admin.categories")}</th>
		<th style="text-align: center;">${I18n.getMessage("Admin.forums")}</th>
		<th style="text-align: center;">${I18n.getMessage("Delete")}</th>
		<th style="text-align: center;">${I18n.getMessage("Action")}</th>
	</tr>
	
	
	</thead>
	<tbody>

	
	<#list categories as category>
		<#if repository.isCategoryAccessible(category.id)>
		<tr>
			<td style="width: 5%; text-align: center;"><img src="${contextPath}/templates/${templateName}/admin/img/icon_subfolder.gif" alt="Subforum"></td>
			<td><strong>${category.name}</strong></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<#assign counter = 1/>
			<#assign forums = repository.getCategory(category.id).getForums()/>
			<#list forums as forum>
			  <tr >
					<td>&nbsp;</td>
					<td>&nbsp;</td>    
					<td style="text-align: center;"><a id="forumEdit" href="${contextPath}/${moduleName}/edit/${forum.id}${extension}"><strong>${forum.name}</strong></a></td>
			<td style="text-align: center;"><input type="checkbox" name="forum_id" value="${forum.id}" class="radio"/></td>
			<td class="row2" style="text-align: center;" width: 100px; text-align: right; white-space: nowrap;">
				<#if (counter > 1)>
					<a href="${contextPath}/${moduleName}/up/${forum.id}${extension}"><img src="${contextPath}/templates/${templateName}/admin/img/icon_up.gif" alt="Move up" title="${I18n.getMessage("up")}"></a>
				<#else>	
	   				<img src="${contextPath}/templates/${templateName}/admin/img/icon_up_disabled.gif" alt="Move up" title="Move up">
				</#if>
				
				<#if (counter < forums.size())>
    				<a href="${contextPath}/${moduleName}/down/${forum.id}${extension}'"><img src="${contextPath}/templates/${templateName}/admin/img/icon_down.gif" alt="Move down" title="${I18n.getMessage("down")}"></a>
				<#else>
					<img src="${contextPath}/templates/${templateName}/admin/img/icon_down_disabled.gif" alt="Move down" title="${I18n.getMessage("down")}">
				</#if>
				
				
				<a href="${contextPath}/${moduleName}/edit/${forum.id}${extension}" id="categoryEdit"><img src="${contextPath}/templates/${templateName}/admin/img/icon_edit.gif" alt="Edit" title="${I18n.getMessage("Edit")}"></a>
			</td>
			  
			  </tr>
				<#assign counter = counter + 1/>
			</#list>


		</tr>
			</#if>
			</#list>



</table>




<fieldset class="submit-buttons">
		<input class="button1" type="button" value="${I18n.getMessage("Forums.List.ClickToNew")}" id="btn_insert" name="button" onclick="document.location = '${contextPath}/${moduleName}/insert${extension}';">&nbsp;
		<input class="button2" type="submit" value="${I18n.getMessage("Forums.List.ClickToDelete")}">
</fieldset>

</form>

</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>